<?php include('page_header.php')?>
<form name=myform method="post" action="?action=movie_manage">
    <table width="100%" border="0" align=center cellpadding="2" cellspacing="1" class="tableBorder">
        <tr>
            <td bgcolor="#F1F3F5"> 综合:
                <select name="cat_id" style="width:12em">
                    <option value="" selected>所有分类</option>
                    <?php foreach($categories as $i => $catgory):?>
                    <option value="<?= $catgory['cat_id']?>"><?= $catgory['cat_name']?></option>
                    <?php endforeach;?>
                </select>
                <input name="keyword" type="text" value="" size="30">
                <select name="type">
                    <option value="name" selected>标题</option>
                </select>
                <input name="" type="submit" value="搜索">
			</td>
        </tr>
    </table>
</form>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
    <tr>
        <td ></td>
    </tr>
</table>
<table width="100%%" cellpadding="2" cellspacing="1" class="tableborder">
    <form name=myform method="post" action="?action=movie_from">
        <tr>
            <th colspan=4>影片管理</th>
        </tr>
        <tr>
            <td width="90" class="tablerowhighlight">文章标识</td>
            <td width="360" class="tablerowhighlight">文章标题</td>
            <td width="60" class="tablerowhighlight">点击</td>
            <td width="120" class="tablerowhighlight">管理操作</td>
        </tr>
        <?php foreach($articles as $article):?>
        <tr onmouseout="this.style.backgroundColor='#F1F3F5'" onmouseover="this.style.backgroundColor='#CEEAD3'" bgColor='#F1F3F5'>
            <td height="25"><input type="checkbox" name="article_ids[]" value="<?= $article['article_id']?>"> <?= $article['article_id']?> </td>
            <td>[<a href="mlist/123.htm" target="_blank"><?= $cat_names[$article['cat_id']]?></a>] <a href="movie/49b1/e82030.htm" target="_blank"><?= $article['article_title']?></a></td>
            <td> 0 </td>
            <td><a href="?c=CArticle&m=edit&article_id=<?= $article['article_id']?>">修改</a>&nbsp;|&nbsp;<a href="?c=CArticle&m=delete&article_id=<?= $article['article_id']?>">删除</a>&nbsp;|&nbsp;<a href="?c=CArticle&m=makeHtml&article_id=<?= $article['article_id']?>"> 生成 </a></td>
        </tr>
        <?php endforeach;?>
        <tr>
            <td colspan="6" bgcolor="#E1E1E1" align="right"><div class="pages"><em>&nbsp;30&nbsp;</em><strong>1</strong><a href="?action=movie_manage&o=&p=&cid=&pid=&sid=&type=&ordertype=&keyword=&page=2">2</a><a href="?action=movie_manage&o=&p=&cid=&pid=&sid=&type=&ordertype=&keyword=&page=2" class="next">&rsaquo;&rsaquo;</a></div></td>
        </tr>
        <tr>
            <td colspan="6" bgcolor="#E1E1E1"><input name='chkall' type='checkbox' onclick='checkall(this.form)' value='checkbox'>
                (全选)<font color="#FF0000">批量操作</font>
                <input type="submit" name="xgsubmit" value="修改电影">
                <input type="submit" name="fbsubmit" value="发布电影">
                <input type="submit" name="jzsubmit" value="禁止电影">
                <input type="submit" name="scsubmit" value="删除电影"></td>
        </tr>
    </form>
</table>
<?php include('page_footer.php')?>